import { Popconfirm, Button } from 'antd'

const DeleteButton = (props) => {
  const { confirm } = props
  return (
    <Popconfirm
      title="你确定删除吗?"
      onConfirm={confirm}
      okText="开心删除"
      cancelText="狠心放弃"
    >
      <Button type="link" danger>删除</Button>
    </Popconfirm>
  )
}

export default DeleteButton
